ISlave.AoeWriteControlCommand 方法
透過 AoE (ADS over EtherCAT) 傳送命令給裝置。
命名空間:IntervalZero.KINGSTAR.Base.Class組合: IntervalZero.KINGSTAR.Base.Class (於 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0
語法
IKsCommand AoeWriteControlCommand(
int port,
ushort aoeState,
ushort deviceState,
byte[] value
)
Function AoeWriteControlCommand(
port As Integer,
aoeState As UShort,
deviceState As UShort,
value As Byte()
) As IKsCommand
參數
port
型別:int
EtherCAT 從站埠。
aoeState
型別:ushort
命令執行中的 AoE 狀態。
deviceState
型別:ushort
命令執行時的裝置狀態,不同裝置有不同狀態。
value
型別:byte[]
欲執行命令的值的指標。
回傳值
型別:IKsCommand
回傳一個方法的狀態。
可用的 EtherCAT 狀態
ecatPreOP, ecatSafeOP, ecatOP
參見